
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.项目页面配置pages文件 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="pages.html">
            
                <a href="pages.html">
            
                    
                    1.项目页面配置pages文件
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >1.项目页面配置pages文件</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x76F8;&#x5173;&#x4EE3;&#x7801;&#x5982;&#x4E0B;">&#x76F8;&#x5173;&#x4EE3;&#x7801;&#x5982;&#x4E0B;</h1>
<p>&gt;</p>
<blockquote>
<p>&#x4E3B;&#x8981;&#x662F;&#x914D;&#x7F6E;tabbar&#x4EE5;&#x53CA;&#x6807;&#x9898;&#x680F;&#x7684;&#x989C;&#x8272;</p>
<p>&#x6548;&#x679C;&#x56FE;&#x5982;&#x4E0B;&#xFF1A;</p>
</blockquote>
<pre><code class="lang-javascript">{
    <span class="hljs-string">&quot;pages&quot;</span>: [ <span class="hljs-comment">//pages&#x6570;&#x7EC4;&#x4E2D;&#x7B2C;&#x4E00;&#x9879;&#x8868;&#x793A;&#x5E94;&#x7528;&#x542F;&#x52A8;&#x9875;&#xFF0C;&#x53C2;&#x8003;&#xFF1A;https://uniapp.dcloud.io/collocation/pages</span>
        {
            <span class="hljs-string">&quot;path&quot;</span>: <span class="hljs-string">&quot;pages/index/index&quot;</span>,
            <span class="hljs-string">&quot;style&quot;</span>: {
                <span class="hljs-string">&quot;navigationBarTitleText&quot;</span>: <span class="hljs-string">&quot;&#x8F9F; &#x8C23;&quot;</span>
            }
        },
        {
            <span class="hljs-string">&quot;path&quot;</span>: <span class="hljs-string">&quot;pages/challenge/challenge&quot;</span>,
            <span class="hljs-string">&quot;style&quot;</span>: {
                <span class="hljs-string">&quot;navigationBarTitleText&quot;</span>: <span class="hljs-string">&quot;&#x6BCF;&#x65E5;&#x6311;&#x6218;&quot;</span>
            }
        }, {
            <span class="hljs-string">&quot;path&quot;</span>: <span class="hljs-string">&quot;pages/guidance/guidance&quot;</span>,
            <span class="hljs-string">&quot;style&quot;</span>: {
                <span class="hljs-string">&quot;navigationBarTitleText&quot;</span>: <span class="hljs-string">&quot;&#x5065;&#x5EB7;&#x6307;&#x5BFC;&quot;</span>
            }
        }, {
            <span class="hljs-string">&quot;path&quot;</span>: <span class="hljs-string">&quot;pages/recommended/recommended&quot;</span>,
            <span class="hljs-string">&quot;style&quot;</span>: {
                <span class="hljs-string">&quot;navigationBarTitleText&quot;</span>: <span class="hljs-string">&quot;&#x4F18;&#x8D28;&#x63A8;&#x8350;&quot;</span>
            }
        }, {
            <span class="hljs-string">&quot;path&quot;</span>: <span class="hljs-string">&quot;pages/user/user&quot;</span>,
            <span class="hljs-string">&quot;style&quot;</span>: {
                <span class="hljs-string">&quot;navigationBarTitleText&quot;</span>: <span class="hljs-string">&quot;&#x7528;&#x6237;&#x4E2D;&#x5FC3;&quot;</span>
            }
        }
    ],
    <span class="hljs-string">&quot;tabBar&quot;</span>: {
        <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;#7A7E83&quot;</span>,
        <span class="hljs-string">&quot;selectedColor&quot;</span>: <span class="hljs-string">&quot;#19be6b&quot;</span>,
        <span class="hljs-string">&quot;borderStyle&quot;</span>: <span class="hljs-string">&quot;black&quot;</span>,
        <span class="hljs-string">&quot;backgroundColor&quot;</span>: <span class="hljs-string">&quot;#ffffff&quot;</span>,
        <span class="hljs-string">&quot;list&quot;</span>: [{
            <span class="hljs-string">&quot;pagePath&quot;</span>: <span class="hljs-string">&quot;pages/index/index&quot;</span>,
            <span class="hljs-string">&quot;iconWidth&quot;</span>: <span class="hljs-string">&quot;20px&quot;</span>,
            <span class="hljs-string">&quot;iconPath&quot;</span>: <span class="hljs-string">&quot;static/tabbar_icons/index.png&quot;</span>,
            <span class="hljs-string">&quot;selectedIconPath&quot;</span>: <span class="hljs-string">&quot;static/tabbar_icons/index_h.png&quot;</span>,
            <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;&#x5E94;&#x7528;&#x9996;&#x9875;&quot;</span>
        }, {
            <span class="hljs-string">&quot;pagePath&quot;</span>: <span class="hljs-string">&quot;pages/challenge/challenge&quot;</span>,
            <span class="hljs-string">&quot;iconWidth&quot;</span>: <span class="hljs-string">&quot;20px&quot;</span>,
            <span class="hljs-string">&quot;iconPath&quot;</span>: <span class="hljs-string">&quot;static/tabbar_icons/quantou.png&quot;</span>,
            <span class="hljs-string">&quot;selectedIconPath&quot;</span>: <span class="hljs-string">&quot;static/tabbar_icons/quantou_h.png&quot;</span>,
            <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;&#x6BCF;&#x65E5;&#x6311;&#x6218;&quot;</span>
        }, {
            <span class="hljs-string">&quot;pagePath&quot;</span>: <span class="hljs-string">&quot;pages/guidance/guidance&quot;</span>,
            <span class="hljs-string">&quot;iconPath&quot;</span>: <span class="hljs-string">&quot;static/tabbar_icons/guide.png&quot;</span>,
            <span class="hljs-string">&quot;selectedIconPath&quot;</span>: <span class="hljs-string">&quot;static/tabbar_icons/guide_h.png&quot;</span>,
            <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;&#x5065;&#x5EB7;&#x6307;&#x5BFC;&quot;</span>
        }, {
            <span class="hljs-string">&quot;pagePath&quot;</span>: <span class="hljs-string">&quot;pages/recommended/recommended&quot;</span>,
            <span class="hljs-string">&quot;iconPath&quot;</span>: <span class="hljs-string">&quot;static/tabbar_icons/recommended.png&quot;</span>,
            <span class="hljs-string">&quot;selectedIconPath&quot;</span>: <span class="hljs-string">&quot;static/tabbar_icons/recommended_h.png&quot;</span>,
            <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;&#x4F18;&#x8D28;&#x63A8;&#x8350;&quot;</span>
        }, {
            <span class="hljs-string">&quot;pagePath&quot;</span>: <span class="hljs-string">&quot;pages/user/user&quot;</span>,
            <span class="hljs-string">&quot;iconWidth&quot;</span>: <span class="hljs-string">&quot;5px&quot;</span>,
            <span class="hljs-string">&quot;iconPath&quot;</span>: <span class="hljs-string">&quot;static/tabbar_icons/user.png&quot;</span>,
            <span class="hljs-string">&quot;selectedIconPath&quot;</span>: <span class="hljs-string">&quot;static/tabbar_icons/user_h.png&quot;</span>,
            <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;&#x7528;&#x6237;&#x4E2D;&#x5FC3;&quot;</span>
        }]
    },
    <span class="hljs-string">&quot;globalStyle&quot;</span>: {
        <span class="hljs-string">&quot;navigationBarTextStyle&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
        <span class="hljs-string">&quot;navigationBarTitleText&quot;</span>: <span class="hljs-string">&quot;uni-app&quot;</span>,
        <span class="hljs-string">&quot;navigationBarBackgroundColor&quot;</span>: <span class="hljs-string">&quot;#19be6b&quot;</span>,
        <span class="hljs-string">&quot;backgroundColor&quot;</span>: <span class="hljs-string">&quot;#F8F8F8&quot;</span>
    }
}
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 简介">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.项目页面配置pages文件","level":"1.2","depth":1,"previous":{"title":"简介","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"pages.md","mtime":"2019-10-09T15:16:09.809Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-10-10T09:42:32.497Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

